<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" data-rule="required" data-source="track/product/index" class="form-control selectpage" name="row[product_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Batch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-batch" data-rule="required" data-toggle="tooltip" data-original-title="批次为自动生成,也可手动修改" class="form-control" name="row[batch]" type="text" value="{$batch}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_id" data-rule="" data-field="nickname" data-source="track/agent/index" class="form-control selectpage" name="row[agent_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('防伪码长度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code_length" class="form-control" name="row[code_length]" type="number" data-toggle="tooltip" data-original-title="防伪码长度建议8-12位" value="8">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('防伪码前缀')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code_pre"  placeholder="防伪码前缀尽量每次不一样,防止防伪码重复" data-toggle="tooltip" data-original-title="防伪码前缀建议2-5位,可选" class="form-control" name="row[code_pre]" type="text" >
        </div>

    </div>
    <div class="form-group">
        <label for="c-code_type" class="control-label col-xs-12 col-sm-2">{:__('防伪码生成方式')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-code_type" data-rule="required" class="form-control selectpicker" name="row[code_type]">
                {foreach name="code_type" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生成数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" class="form-control" data-toggle="tooltip" data-original-title="建议一次生成1万条以内"  name="row[num]" type="number" value="1">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-switch" name="row[switch]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success  fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
